// $Id$
package de.servicezombie.cxf;

import org.apache.cxf.message.Exchange;

import de.servicezombie.pub.r1.CommonRestResponse;

public interface WebserviceTemplate {
	
	/**
	 * get a cxf rest exchange instance of current thread. this is similar to 
	 * attributes saved in a request
	 * @return the valid exchange instance never null
	 * @throws IllegalStateException if there is no Exchange instance available.
	 */
	Exchange getExchange() throws IllegalStateException;
	
	<T> CommonRestResponse<T> getWebserviceResponse();
	
	ServletApiAdapter getServletApiAdapter();
}
